package csu.edu.flatprogram.vo;


import com.fasterxml.jackson.annotation.JsonFormat;
import csu.edu.flatprogram.entity.LineItem;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@Component
public class OrderVO {
    //orders表中的数据
    private int orderId;
    private String userId;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+08")
    private Date orderDate;
    private String billAddress1;
    private String billAddress2;



    //order状态 来自orderstatus表
    private String status;

    //order包含lineItem的情况
    private int lineNumber;
    private String itemId;
    private int quantity;
    private BigDecimal unitPrice;

}
